home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18537 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.nkn.net!news
  2. From: kidzi@dfw.nkn.edu (Wizard of Id)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: memcopy...
  5. Date: Sun, 21 Apr 1996 09:17:22 GMT
  6. Organization: National Knowledge Network
  7. Message-ID: <3179fcbf.23219118@news.nkn.net>
  8. References: <4ksiul$n1o@news.duke.edu> <marnoldDpw3qC.KH3@netcom.com>
  9. NNTP-Posting-Host: port9.nkn.edu
  10. X-Newsreader: Forte Agent .99d/32.168
  11.  
  12. On Mon, 15 Apr 1996 06:08:36 GMT, marnold@netcom.com (Matt Arnold)
  13. wrote:
  14.  
  15. >Joshua Lindquist <lindquij@acpub.duke.edu> writes:
  16. >
  17. >
  18. >>Hi...I'm wondering if anyone knows the syntax for the memcopy function 
  19. >>(well, I think it's memcopy...it might be something similar to 
  20. >>memcopy...it's the function that copies some specified area of memory 
  21. >>bitwise into some other area of memory).  This would be very helpful; 
  22. >>thanks much.
  23. >
  24. >Don't you have any documentation?  You could at least look in your
  25. >"mem.h" header file (I assme you have it, otherwise you wouldn't be
  26. >asking how to use it).
  27. >
  28. >The function is memcpy(), prototyped in my "mem.h" as...
  29. >
  30. >   void *memcpy(void *dest, const void *src, size_t n);
  31. >
  32. >Where dest points to the place you want the memory pointed to by src 
  33. >to go.  n is the number of bytes to copy from src to dest.
  34. >
  35. >This is really basic.  What programming resources do you have?  May I 
  36. >suggest getting better resources?  For example, I can go to my 
  37. >compiler's help and type "memcpy" and see documentation for it.  Can't 
  38. >you do something like this?
  39. >
  40. >Regards,
  41.  
  42. You know what, you're a real wise ass.  If he wished for a comment
  43. like that, then i'm sure he wouldn't have asked it, because I myself
  44. am having problems right now with that command.  Considering my
  45. program halts when i try to move text memory, b800, around the place,
  46. i think it's a useful question that deserves a good answer, not some
  47. fluff to help boost your ego. geez.
  48.